import { fromJS } from 'immutable';
import * as contains from './typeAction';


const defaultState = fromJS({
	login: false
})

export default (state = defaultState, action) => {
	switch(action.type){
		case contains.CHANGE_LOGIN:
			return state.set('login', action.value);
		case contains.LOGIN_OUT:
			return state.set('login', action.value);
		default:
			return state;
	}
}